Ext.define('ProjectAON.store.Hoofdcompetenties', {
    extend:'Ext.data.Store',
    model:'ProjectAON.model.Hoofdcompetenties',
    autoLoad:true,

    proxy:{
        type: 'ajax',
        api: {
            read: 'data/select.php',
            update: 'data/updateCompetentie.php',
            create: 'data/insertCompetentie.php',
            destroy: 'data/delete.php'
        },
        reader: {
            type: 'json',
            root: 'Vak',
            successProperty: 'success'
        },
        extraParams:{tabel:'competenties'}
    },
    filters:[
        {
            property:'niveau',
            value:'1'
        }
    ]
});